import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
//import * as 将导出的包 用obj包裹
import * as serviceWorker from './serviceWorker';
import * as apis from "axios"
import Page from './Page'
import { AlitaProvider, setConfig } from 'redux-alita';  //api https://github.com/yezihaohao/redux-alita?spm=a2c4e.10696291.0.0.67fc19a4tu5itO
import './style/lib/animate.css'
import './style/antd/index.scss'
import './style/index.scss'

//注册 axios 提供给 redux 
setConfig(apis);
ReactDOM.render(
    <AlitaProvider>
        <Page />
    </AlitaProvider>,
    document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
